package dao;

import org.apache.ibatis.annotations.Param;
import pojo.Booking;

import java.util.List;

public interface BookingMapper {
    List<Booking> list(@Param("pageIndex") Integer pageIndex, @Param("pageSize") Integer pageSize, @Param("userName") String userName);

    int add(Booking booking);

    int delete(@Param("id") Integer id);

    int update(@Param("status") Integer status, @Param("id") Integer id);
    int cardcount(@Param("cardId") String cardId);
}

